package com.test.service;

import com.alibaba.dubbo.common.compiler.Compiler;
import com.test.bean.User;
import com.test.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by HBZ on 2017/5/3.
 */
//@Service
public class UserServiceImpl implements UserService{
//    public List<Map<String,Object>> findUser(){
//        List<Map<String,Object>> list=new ArrayList<Map<String, Object>>();
//        return list;
//    }
    @Autowired
//    @Resource
    private UserDao userDao;

    public String findUser(){
        return userDao.findUser();
    }

    public  List<Map<String,Object>> findList(){

        return userDao.findList();
    }

    public void save(User user){
        userDao.save(user);

    }

}
